Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Update ngTranscludeMod.js to be angular 1.5 compatible #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NickBolles
Copy link

@NickBolles NickBolles commented May 3, 2016

Angular 1.5 introduces Multi Slot transclusion, which this version hid. This makes it compatible.
'parent' or 'child' may not be used as slot names, and to combine 'parent' with a slot name use the ng-transclude-slot attribute
angular/angular.js@a4ada8b#comments
https://docs.angularjs.org/api/ng/directive/ngTransclude#multi-slot-transclusion
https://docs.angularjs.org/api/ng/service/$compile#transclusion

Its a little messy and overwhelming but here's a plunker
http://plnkr.co/edit/5XGBEX0muH9CSijMfWsH?p=preview

NickBolles added 3 commits May 3, 2016 10:27
Angular 1.5 introduces Multi Slot transclusion, which this version hid. This makes it compatible.
 'parent' or 'child' may not be used as slot names, and to combine 'parent' with a slot name use the ng-transclude-slot attribute
angular/angular.js@a4ada8b#comments
https://docs.angularjs.org/api/ng/directive/ngTransclude#multi-slot-transclusion
https://docs.angularjs.org/api/ng/service/$compile#transclusion
@Izhaki
Copy link
Owner

Izhaki commented May 6, 2016

Thanks for this @NickBolles!

It'll take me a while to find the time to have a look and test this.

Please watch this space.

@NickBolles
Copy link
Author

@Izhaki had a chance to check this out? Seems pretty solid to me, let me know when you have the chance!

@CyborgMaster
Copy link

Any updates?

@NickBolles
Copy link
Author

@CyborgMaster You can use my branch for now located here
https://github.com/NickBolles/ngTranscludeMod/tree/Angular1.5-multi-slot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants